package com.s666.demo.dao.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.s666.demo.dao.entity.Ziku;
import com.s666.demo.model.dto.ZikuPyCountDTO;

import java.util.List;
import java.util.Map;

/**
 * @author lijin
 */
public interface ZikuMapper extends BaseMapper<Ziku> {
    int deleteByPrimaryKey(Integer id);
    int insertSelective(Ziku record);
    Ziku selectByPrimaryKey(Integer id);

    /**
     *
     * @param ziku
     * @return
     */
    int updateByPrimaryKeySelective(Ziku ziku);
    /**
     * 主键更新
     * @param ziku
     * @return
     */
    int updateByPrimaryKey(Ziku ziku);

    /**
     * 获取拼音的的汉字数量
     * @return
     */
    List<ZikuPyCountDTO> getPyCount(Ziku ziku);

    List<ZikuPyCountDTO> getPyCountByMap(Map<String,String> map);
}